/* 全局样式 */
body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    color: #333;
    padding: 0;
    overflow-y: auto; /* 内容超出时显示滚动条 */
}
html {
    overflow-y: scroll; /* 始终显示垂直滚动条 */
}

/* 可选：自定义滚动条样式 */
::-webkit-scrollbar {
    width: 10px; /* 滚动条宽度 */
}

::-webkit-scrollbar-track {
    background: #f1f1f1; /* 滚动条轨道背景 */
}

::-webkit-scrollbar-thumb {
    background: #888; /* 滚动条滑块颜色 */
    border-radius: 5px; /* 滑块圆角 */
}

::-webkit-scrollbar-thumb:hover {
    background: #555; /* 滑块悬停颜色 */
}
/* 背景动画 */
.background-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.background-shapes div {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: moveBackground 10s infinite ease-in-out;
}

.background-shapes div:nth-child(1) {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 5%;
    animation-duration: 12s;
}

.background-shapes div:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    left: 80%;
    animation-duration: 8s;
}

.background-shapes div:nth-child(3) {
    width: 100px;
    height: 100px;
    top: 30%;
    left: 70%;
    animation-duration: 10s;
}

@keyframes moveBackground {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0);
    }
}

/* 欢迎动画 */
.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transform: translate(0, 0);
    transition: opacity 1s ease, transform 1s ease;
}

.welcome-content {
    text-align: center;
    color: #fff;
    animation: slideIn 1s ease-out;
}

.welcome-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

@keyframes slideIn {
    from {
        transform: translate(100%, 100%);
    }
    to {
        transform: translate(0, 0);
    }
}

/* 搜索框 */
.search-container {
    margin: 20px 0;
    display: flex;
    align-items: center;
}

#search-input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    width: 300px;
    margin-right: 10px;
}

#search-button {
    padding: 10px 20px;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

#search-button:hover {
    background: linear-gradient(135deg, #2575fc, #6a11cb);
    transform: translateY(-2px);
}

#search-button:active {
    transform: translateY(0);
}

/* 动漫简介卡片 */
.anime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    width: 100%;
    max-width: 1200px;
}

.anime-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.anime-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.anime-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.anime-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.anime-card p {
    font-size: 16px;
    color: #555;
}

/* 页脚 */
footer {
    margin-top: 40px;
    text-align: center;
    color: #fff;
    font-size: 14px;
}
/* 主要内容容器 */

/* 表格样式 */
.anime-table {
    width: 100%;
    border-collapse: collapse;
}

.anime-table th, .anime-table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}
.anime-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.5s ease;
    max-height: 0;
    opacity: 0;
}

.anime-table.visible {
    max-height: 500px; /* 根据内容调整 */
    opacity: 1;
}

.anime-table th,
.anime-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.anime-table th {
    background-color: #6a11cb;
    color: #fff;
}

.anime-table tr:hover {
    background-color: #f1f1f1;
    transition: background-color 0.3s ease;
}

/* 展开按钮样式 */
.toggle-button {
    padding: 10px 20px;
    background-color: #6a11cb;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.toggle-button:hover {
    background-color: #2575fc;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination button {
    padding: 8px 16px;
    margin: 0 5px;
    background-color: #6a11cb;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.pagination button:hover {
    background-color: #2575fc;
}

.pagination button.active {
    background-color: #2575fc;
}